package com.qingcheng.dao;

import com.qingcheng.pojo.system.RoleResource;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * Created by yuanxin
 * Date:2019/7/1
 * Time:9:35
 */
public interface RoleResourceMapper extends Mapper<RoleResource> {

    @Select("select resource_id as resourceId from tb_role_resource where role_id = #{roleId}")
    public List<Integer> findResourceIdsByRoleId(@Param("roleId") Integer roleId);
}
